package com.oc.mba.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OcMessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oc_message", catalog = "openmba")
public class MessageEntity implements java.io.Serializable {

	// Fields

	private Integer id;
	private String msgTitle;
	private String msgContent;
	private Short msgType;
	private Timestamp msgTime;
	private Short msgExpire;
	private Timestamp msgExpireTime;

	// Constructors

	/** default constructor */
	public MessageEntity() {
	}

	/** full constructor */
	public MessageEntity(String msgTitle, String msgContent, Short msgType,
			Timestamp msgTime, Short msgExpire, Timestamp msgExpireTime) {
		this.msgTitle = msgTitle;
		this.msgContent = msgContent;
		this.msgType = msgType;
		this.msgTime = msgTime;
		this.msgExpire = msgExpire;
		this.msgExpireTime = msgExpireTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "msg_title", nullable = false)
	public String getMsgTitle() {
		return this.msgTitle;
	}

	public void setMsgTitle(String msgTitle) {
		this.msgTitle = msgTitle;
	}

	@Column(name = "msg_content", nullable = false)
	public String getMsgContent() {
		return this.msgContent;
	}

	public void setMsgContent(String msgContent) {
		this.msgContent = msgContent;
	}

	@Column(name = "msg_type", nullable = false)
	public Short getMsgType() {
		return this.msgType;
	}

	public void setMsgType(Short msgType) {
		this.msgType = msgType;
	}

	@Column(name = "msg_time", nullable = false, length = 19)
	public Timestamp getMsgTime() {
		return this.msgTime;
	}

	public void setMsgTime(Timestamp msgTime) {
		this.msgTime = msgTime;
	}

	@Column(name = "msg_expire", nullable = false)
	public Short getMsgExpire() {
		return this.msgExpire;
	}

	public void setMsgExpire(Short msgExpire) {
		this.msgExpire = msgExpire;
	}

	@Column(name = "msg_expire_time", nullable = false, length = 19)
	public Timestamp getMsgExpireTime() {
		return this.msgExpireTime;
	}

	public void setMsgExpireTime(Timestamp msgExpireTime) {
		this.msgExpireTime = msgExpireTime;
	}

}